function validate(){
	
	var schedsearch = document.getElementById('txtSearch');
	var sched = document.getElementById('sltSg');
	
	if(notEmpty(schedsearch, "Search cannot be empty")){
		    if(madeSelection(sched, "Select the option")){ 
			return true;
			
	
	}
	
	return false;
	}
	
	return false;
	}
	
	
		
	function onDel(id)
{
		
		//currentRow = td.parent;
if(confirm("Do You Want To Delete?")){

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
		var tr = document.getElementById(id).parentNode.parentNode;
		tr.parentNode.removeChild(tr);
        //document.getElementById(id).innerHTML=xmlhttp.responseText;
    }
  }

    
	//var queryString = "?id=" + id+ "&subgr=" +subgr;
	var queryString = "?id=" + id;

	
xmlhttp.open("GET","../logic/delete/room_delete.php"+queryString ,true);
xmlhttp.send();
}
}